타임아웃
TimeoutMs는 밀리초 단위의 선택적 타임아웃을 제공하며, 이 시간이 지나면 OCR 읽기 작업이 취소됩니다.
AbortToken와 유사하게, TimeoutMs도 프로그램이나 애플리케이션이 멈춘 경우 대용량 입력 파일을 읽는 데 도움이 됩니다.
이 기능은 .NET Framework 4.x.x에서 지원되지 않음을 유의하십시오.
using IronOcr;
int cancel_time = 1000;
// Opens a Large PDF which may need to be cancelled early
IronTesseract ocrTesseract = new IronTesseract() { Language = OcrLanguage.English };
var ocrInput = new OcrInput();
ocrInput.LoadPdf("large-report.pdf");
// Starts a read on the PDF using IronOCR with specified cancel time
OcrReadTask ocrRead = ocrTesseract.ReadAsync(ocrInput, cancel_time);
ocrRead.Wait();
Imports IronOcr
Private cancel_time As Integer = 1000
' Opens a Large PDF which may need to be cancelled early
Private ocrTesseract As New IronTesseract() With {.Language = OcrLanguage.English}
Private ocrInput = New OcrInput()
ocrInput.LoadPdf("large-report.pdf")
' Starts a read on the PDF using IronOCR with specified cancel time
Dim ocrRead As OcrReadTask = ocrTesseract.ReadAsync(ocrInput, cancel_time)
ocrRead.Wait()
Install-Package IronOcr
TimeoutMs는 밀리초 단위의 선택적 타임아웃을 제공하며, 이 시간이 지나면 OCR 읽기 작업이 취소됩니다.
AbortToken와 유사하게, TimeoutMs도 프로그램이나 애플리케이션이 멈춘 경우 대용량 입력 파일을 읽는 데 도움이 됩니다.
이 기능은 .NET Framework 4.x.x에서 지원되지 않음을 유의하십시오.